import request from "@/utils/request";

export function getUserCondition(data) {
  return request({
    url: "/sys/user/getUserCondition",
    method: "post",
    data,
  });
}

/**
 * @author LiHuaibei
 * @date 2024/6/16 9:41
 * @description
 * @param null 1
 * @return 鱼塘查询条件
 * @throws
 */
export function querySearchFishpondName(data) {
  return request({
    url: "/web/condition/fishPondList",
    method: "post",
    data,
  });
}

//鱼品种类
export function querySearchFishType(data) {
  return request({
    url: "/web/condition/getFishSpecies",
    method: "post",
    data: {
      ...data,
    },
  });
}

export function getTypes(data) {
  return request({
    url: "/core/baseTypes/queryByTypeId",
    method: "post",
    data: data,
  });
}

export function getEquipmentTrackList(data) {
  return request({
    url: "/core/busEquipmentTrajectory/query",
    method: "post",
    data: data,
  });
}
// 供应商列表
export function getSupplierList(data) {
  return request({
    url: "/web/condition/supplierList",
    method: "post",
    data: {
      ...data,
    },
  });
}
// 客户列表
export function getCustomerList(data) {
  return request({
    url: "/web/condition/customerList",
    method: "post",
    data,
  });
}
// 鱼品列表
export function getFishTypeList(data) {
  return request({
    url: "/web/condition/getFishSpecies",
    method: "post",
    data: {
      ...data,
    },
  });
}
// 用户列表
export function getUserList(data) {
  return request({
    url: "/web/condition/userList",
    method: "post",
    data,
  });
}
